#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void my_fun(int arr[10])
{
	int i = 0;
	int left = 0;
	int right = sizeof(arr) - 1;
	while (left < right)
	{
		if (arr[left] % 2 == 0&&arr[right]%2!=0)
		{
			int tmp = arr[left];
			arr[left] = arr[right];
			arr[right] = tmp;
		}
		left++;
		right--;
	}
}
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,89,10};
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
	printf("---------------\n");
	my_fun(arr);
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
	return 0;
}